/**
 * 
 */
package com.example.queue.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.queue.dao.EmployeeDAOImpl;
import com.example.queue.dto.EmployeeBean;

/**
 * @author sunaina.sharma
 * 
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

	@Autowired
	EmployeeDAOImpl employeeDAOImpl;

	/*
	 * @Autowired NotificationsProducer notificationsProducer;
	 */

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.example.queue.service.EmployeeService#addEmployeeDetails(com.example
	 * .queue.dto.EmployeeBean)
	 */
	@Override
	public void addEmployeeDetails(EmployeeBean employeeBean) throws Exception {
		try {
			employeeDAOImpl.addEmployeeDetails(employeeBean);
			/*
			 * notificationsProducer
			 * .sendNotification("Save Or Update Employee with values : \nName : "
			 * + employeeBean.getName() + "\nAge : " + employeeBean.getAge() +
			 * "\nJob department : " + employeeBean.getDepartment());
			 */

		} catch (Exception exception) {
			throw exception;
		}
	}

}
